package com.foreknow.elmboot.service.impl;

import com.foreknow.elmboot.mapper.OrderDetailetMapper;
import com.foreknow.elmboot.po.Order;
import com.foreknow.elmboot.po.OrderDetailet;
import com.foreknow.elmboot.po.User;
import com.foreknow.elmboot.service.OrderDetailetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailetServiceImpl implements OrderDetailetService{
    @Autowired
    private OrderDetailetMapper orderDetailetMapper;

    @Override
    public List<OrderDetailet> getOrderDetailetByOrderId(Integer orderId){
        return  orderDetailetMapper.getOrderDetailetByOrderId(orderId);
    }

    @Override
    public int CreateOrderDetailet(OrderDetailet orderDetailet){
        return orderDetailetMapper.CreateOrderDetailet(orderDetailet);
    }
}
